/**
 * 
 */
package com.roc.dubbo.boot.configuration;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import com.roc.dubbo.config.spring.AnnotationBean;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * @author "Ren PengFei (ROC)"
 * @date 2016年4月7日 下午4:36:19
 * @description
 */
@Configuration
@Import(DubboBasicConfiguration.class)
@AutoConfigureAfter(DubboBasicConfiguration.class)
public class DubboConfiguration {

	private final Logger logger = LogManager.getLogger(getClass());

	@Bean
	// @DependsOn("dubboConfiguration")
	public AnnotationBean dubboAnnotationBean() {
		AnnotationBean annotationBean = new AnnotationBean();
		// annotationBean.setApplicationContext(applicationContext);
		// annotationBean.setPackage(dubboProperties.getAnnotationPackage());
		// annotationBean.setPackage("com.roc.pay");
		logger.info("加入自定义" + annotationBean);
		return annotationBean;
	}

}
